package com.koala.upms.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.koala.common.core.vo.MenuVO;
import com.koala.upms.api.entity.SysMenu;
import com.koala.upms.mapper.SysMenuMapper;
import com.koala.upms.service.SysMenuService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 菜单权限表 服务实现类
 * </p>
 *
 * @author zhangchengji
 * @since 2019-05-12
 */
@Service
@AllArgsConstructor
public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> implements SysMenuService {

    private  final SysMenuMapper sysMenuMapper;

    @Override
    public List<MenuVO> getMenuByRoleId(Integer roleId) {
        return sysMenuMapper.getMenuByRoleId(roleId);
    }
}
